<div class="form">
    <?php
    /** @var PorcionPersonalController $this */
    /** @var PorcionPersonal $model */
    /** @var AweActiveForm $form */
    $form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
        'id' => 'porcion-personal-form',
        'enableAjaxValidation' => false,
        'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,),
        'enableClientValidation' => true,
    ));
    ?>

    <p class="note">
        <?php echo Yii::t('AweCrud.app', 'Fields with') ?> <span class="required">*</span>
        <?php echo Yii::t('AweCrud.app', 'are required') ?>.    </p>

    <?php echo $form->errorSummary($model) ?>
    <div class="row-fluid">
        <div class="spna5">
            <?php echo $form->dropDownListRow($model, 'alimentos_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Alimentos::model()->findAll(), 'id', Alimentos::representingColumn())) ?>
        </div>
        <div class="spna5">
            <?php echo $form->textFieldRow($model, 'cantidad', array('maxlength' => 10)) ?>
        </div>
    </div>
    <div class="row-fluid">
        <div class="spna5">
            <?php echo $form->textFieldRow($model, 'medida_cacera', array('maxlength' => 10)) ?>
        </div>
        <div class="spna5">
        </div>
    </div>
    <div class="form-actions">
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
        ));
        ?>
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            //'buttonType'=>'submit',
            'label' => Yii::t('AweCrud.app', 'Cancel'),
            'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')
        ));
        ?>
    </div>

    <?php $this->endWidget(); ?>
</div>